#include-once

Func MainWindow_Create()
	Local $hWnd = GUICreate('EdiT')
	GUISetOnEvent(-3, __MainWindow_OnClose)
	Return $hWnd
EndFunc

Func __MainWindow_OnClose()
	GUIDelete(@GUI_WinHandle)
	Exit 1
EndFunc